package cn.changeforyou.generator.db.mybatisPlus;

import cn.changeforyou.generator.terminal.TerminalModel;
import cn.changeforyou.generator.terminal.TerminalApplication;
import java.util.ArrayList;
import java.util.List;

/**
 * @author zhyu
 * @date 2021/1/30 15:00
 */
public class MybatisPlusApplication implements TerminalApplication {

    @Override
    public String getName() {
        return "mybatisPlus 生成器";
    }

    @Override
    public List<TerminalModel> getModels() {
        List<TerminalModel> terminalModels = new ArrayList<>();
        put(terminalModels, "mysql的地址", "url");
        put(terminalModels, "mysql的端口号", "port");
        put(terminalModels, "mysql的用户名", "username");
        put(terminalModels, "mysql的密码", "password");
        put(terminalModels, "表名", "tableName");
        put(terminalModels, "service的地址", "servicePath");
        put(terminalModels, "是否是驼峰法命名", "map-underscore-to-camel-case");
        return terminalModels;
    }


    @Override
    public void start() {
        
    }
}
